import service from '../utils/axios'
interface ApiResponse {
    code: number;
    data?: unknown;
    message?: string;
}

// 装置详情
export const getScreenDeviceInfo = (): Promise<ApiResponse> => {
    return service.get('screen/station/getScreenDeviceInfo')
}
// 学习资料
export const getScreenLearnMaterial = (id:number): Promise<ApiResponse> => {
    return service.get(`screen/station/getScreenLearnMaterial?id=${id}`)
}
// 学习视频
export const getScreenShowVideo = (id:number): Promise<ApiResponse> => {
    return service.get(`screen/station/getScreenShowVideo?id=${id}`)
}
// 成绩报告
export const getScreenScoreNotice = (id:number): Promise<ApiResponse> => {
    return service.get(`screen/station/getScreenScoreNotice?id=${id}`)
}